#include "Pch.h"
#include "Plugin.h"
#include "XConsole.h"
#include "ScriptSystem.h"
 

//----------------------------------------------------------------------------
CScriptSystem * gCScriptSystem = NULL;
CXConsole * gCXConsole = NULL;
 
//----------------------------------------------------------------------------
bool dllStartPlugin( void * identifier, std::string & name )
{
	gCXConsole = new CXConsole;
	gCScriptSystem = new CScriptSystem();
	CScriptInterface::getMe()->setIScriptSystem( gCScriptSystem );
	return true;
}

//----------------------------------------------------------------------------
bool dllStopPlugin()
{
	delete gCScriptSystem;
	delete gCXConsole;
	return true;
}
